import express, { Express, Request, Response } from 'express';
const bodyParser = require('body-parser');
import a from './map'
import routes from './routes/api'
const app: Express = express();
app.use(bodyParser.json({
  limit: 102400 * 10
}));

const port = 3220;

app.get('/', (req: Request, res: Response) => {
  res.send('Express + TypeScript Server');
});
app.get('/list', (req: Request, res: Response) => {
  res.send('list + TypeScript Server12222' + a);
});
app.get('/list1', (req: Request, res: Response) => {
  res.send('list + TypeScript Server');
});

app.use('/api', routes)
console.log(11111111111111111)


app.listen(port, () => {
  console.log(`[server]: Server is running at http://localhost:${port}`);
});
module.exports = app;